package com.nekonomics
package utils

import java.nio.charset.StandardCharsets
import java.security.MessageDigest


object PasswordUtil {
  def hash(password: String): String =
    MessageDigest.getInstance("SHA-256")
      .digest(password.getBytes(StandardCharsets.UTF_8))
      .map("%02x".format(_))
      .mkString

}